CXX=arm-linux-g++

all: libmdata.a
	mv $^ ../../lib

libmdata.a: GPSreceiver.o GPSsplitter.o GPSdata.o
	ar r $@ $^

GPSdata.o: GPSdata.cpp GPSdata.hpp GPSsplitter.hpp
GPSreceiver.o: GPSreceiver.cpp GPSdata.hpp GPSsplitter.hpp \
  GPSreceiver.hpp
GPSsplitter.o: GPSsplitter.cpp GPSdata.hpp GPSsplitter.hpp \
  gps_attribute.tab
test.o: test.cpp DataAccess.hpp GPSdata.hpp GPSsplitter.hpp \
  GPSreceiver.hpp

.PHONY: clean

clean:
	rm -f *.o *~

